package com.littleken.foodiePojo.bo;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;

/*
 * Create by littleken on 2020/11/24 9:29
 */
public class LoginUserBO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名", name = "username", example = "littleken", required = true)
    @NotBlank(message = "用户名不可以为空")
    @Length(min = 1, max = 16, message = "用户名长度需要在1-16个字以内")
    private String username;

    @ApiModelProperty(value = "密码", name = "password", example = "123456", required = true)
    @NotBlank(message = "密码不可以为空")
    @Length(min = 6, max = 16, message = "密码长度应在6-16位")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
